package com.lsc.study.oop.exception.demo01;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Demo02 {

    public static void main(String[] args) {


//        e();
        try {
            f();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }

    public static void e(){

        int a = 1;
        int b = 0;
        if (b == 0) {
            throw new ArithmeticException();
        }
        System.out.println(1 / 0);

        System.out.println("hello");

    }

    public static void f() throws FileNotFoundException {

        /* alt + enter */
            new FileInputStream(new File(""));


    }


}
